from rest_framework import serializers
from home.models import NavModel,BannerModel
class NAVSerializer(serializers.ModelSerializer):
    class Meta:
        model=NavModel
        fields=['name','link','is_http']
class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model=BannerModel
        fields=['image','link','note']
